<include file="Public:pagerForm" />
<script type="text/javascript">
function reload13() {
    navTab.reload("__URL__", {});
}
function noticedbltable(target,rel){
    if( target == 'sid_notice'){
    $.pdialog.open("__URL__/read/id/"+rel+"/sid_user="+rel,"pdialogid", "修改公告", { max:false, mask:true, width: 600, height: 300});
    } 
  }
</script>
<style>
	.grid .gridTbody td div img{height:21px;line-height:21px;vertical-align:bottom;}
</style>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="__URL__" method="post" style="">
	<div class="searchBar">
	<ul class="searchContent">
			<li>
				<label>标题：</label>
				<input type="text" name="title" value="{$title}" />
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
    </div>
    </form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" rel="add" height="300"><span>添加</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo"  postType="string" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_notice}" target="dialog"  mask="true" rel="edit" height="300"><span>修改</span></a></li>	
			<li><a class="add" href="__URL__/addTrends" target="dialog" mask="true" rel="addtrend" height="300"><span>添加最新动态</span></a></li>		
		    <li class="line">line</li>
			<li><a class="icon" href="#" onclick="reload13()"><span>刷新</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="136" >
		<thead>
			<tr>
			    <th align="center" width="10"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th align="center" width="80">标题</th>
				<th align="center" width="40">作者</th>
				<th align="center" width="150">内容</th>
				<th align="center" width="40">发布时间</th>
				<th align="center" width="40">失效时间</th>
				<th align="center" width="40">状态</th>
				<th align="center" width="40">操作</th>
			</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="sid_notice" rel="{$vo['id']}" ondblclick="noticedbltable('sid_notice',{$vo.id})">
			    <td align="center"><input type="checkbox" name="ids" value="{$vo['id']}"/></td>
				<td>{$vo['title']}</td>
				<td>{$vo['author']}</td>
				<td>{$vo['content']}</td>
				<td>{$vo['pubdate']}</td>
				<td>{$vo['deadtime']}</td>
				<td>{$vo['status']|getStatus} </td>
				<td>{$vo['status']|showStatus=$vo['id']} <eq name="vo['istrend']" value="0"><a href="__URL__/edit/id/{$vo['id']}" target="dialog" mask="true" height="300">编辑</a></eq></td>
			</tr>
	</volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select class="combox"   name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
	            <eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50" >50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100" >100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200" >200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>
